home *** CD-ROM | disk | FTP | other *** search
/ Amiga Games Extra 1996 September / Amiga Games Extra CD-ROM 9-1996.iso / userbox / publicdomain / vim-4.2 / src / makefile.dos < prev    next >
Makefile  |  1996-05-29  |  5KB  |  162 lines

  1. #
  2. # Makefile for VIM on MSDOS, using Turbo C
  3. #
  4.  
  5. #>>>>> choose options:
  6.  
  7. ### See feature.h for a list of optionals.
  8. ### Any other defines can be included here.
  9.  
  10. DEFINES =
  11.  
  12. #>>>>> name of the compiler and linker, name of lib directory
  13. CC = tcc
  14. LINK = tlink
  15. LIB = c:\turboc\lib
  16.  
  17. #>>>>> end of choices
  18. ###########################################################################
  19.  
  20. INCL = vim.h globals.h option.h keymap.h macros.h ascii.h term.h msdos.h structs.h
  21. CFLAGS = -c -ml -DMSDOS $(DEFINES)
  22.  
  23. SRC =    alloc.c msdos.c buffer.c charset.c cmdcmds.c cmdline.c \
  24.     csearch.c digraph.c edit.c fileio.c getchar.c help.c \
  25.     linefunc.c main.c mark.c memfile.c memline.c message.c misccmds.c \
  26.     normal.c ops.c option.c quickfix.c regexp.c \
  27.     regsub.c screen.c search.c \
  28.     tables.c tag.c term.c undo.c window.c version.c
  29.  
  30. OBJ =    objects/alloc.obj objects/msdos.obj objects/buffer.obj \
  31.     objects/charset.obj objects/cmdcmds.obj objects/cmdline.obj \
  32.     objects/csearch.obj objects/digraph.obj objects/edit.obj \
  33.     objects/fileio.obj objects/getchar.obj objects/help.obj \
  34.     objects/linefunc.obj objects/main.obj objects/mark.obj \
  35.     objects/memfile.obj objects/memline.obj objects/message.obj \
  36.     objects/misccmds.obj objects/normal.obj objects/ops.obj \
  37.     objects/option.obj objects/quickfix.obj objects/regexp.obj \
  38.     objects/regsub.obj objects/screen.obj objects/search.obj \
  39.     objects/tables.obj objects/tag.obj objects/term.obj \
  40.     objects/undo.obj objects/window.obj $(TERMLIB)
  41.  
  42. vim.exe: $(OBJ) version.c
  43.     $(CC) $(CFLAGS) version.c
  44.     $(LINK) /c /m $(LIB)\C0l @vimresp,vim,vim,$(LIB)\emu $(LIB)\Cl
  45.  
  46. ctags:
  47.     command /c ctags $(SRC) $(INCL)
  48.  
  49. clean:
  50.     del $(OBJ) version.obj mkcmdtab.obj vim.exe mkcmdtab.exe cmdtab.h
  51.  
  52. addcr.exe:    addcr.c
  53.     $(CC) addcr.c
  54.     command /c addcr.bat
  55.  
  56. ###########################################################################
  57.  
  58. objects/alloc.obj:    alloc.c  $(INCL)
  59.     $(CC) $(CFLAGS) alloc.c -o objects/alloc.obj
  60.  
  61. objects/msdos.obj:    msdos.c  $(INCL) msdos.h
  62.     $(CC) $(CFLAGS) msdos.c -o objects/msdos.obj
  63.  
  64. objects/buffer.obj:    buffer.c  $(INCL)
  65.     $(CC) $(CFLAGS) buffer.c -o objects/buffer.obj
  66.  
  67. objects/charset.obj:    charset.c  $(INCL)
  68.     $(CC) $(CFLAGS) charset.c -o objects/charset.obj
  69.  
  70. objects/cmdcmds.obj:    cmdcmds.c  $(INCL)
  71.     $(CC) $(CFLAGS) cmdcmds.c -o objects/cmdcmds.obj
  72.  
  73. objects/cmdline.obj:    cmdline.c  $(INCL) cmdtab.h
  74.     $(CC) $(CFLAGS) cmdline.c -o objects/cmdline.obj
  75.  
  76. objects/csearch.obj:    csearch.c  $(INCL)
  77.     $(CC) $(CFLAGS) csearch.c -o objects/csearch.obj
  78.  
  79. objects/digraph.obj:    digraph.c  $(INCL)
  80.     $(CC) $(CFLAGS) digraph.c -o objects/digraph.obj
  81.  
  82. objects/edit.obj:    edit.c  $(INCL)
  83.     $(CC) $(CFLAGS) edit.c -o objects/edit.obj
  84.  
  85. objects/fileio.obj:    fileio.c  $(INCL)
  86.     $(CC) $(CFLAGS) fileio.c -o objects/fileio.obj
  87.  
  88. objects/getchar.obj:    getchar.c  $(INCL)
  89.     $(CC) $(CFLAGS) getchar.c -o objects/getchar.obj
  90.  
  91. objects/help.obj:    help.c  $(INCL)
  92.     $(CC) $(CFLAGS) help.c -o objects/help.obj
  93.  
  94. objects/linefunc.obj:    linefunc.c  $(INCL)
  95.     $(CC) $(CFLAGS) linefunc.c -o objects/linefunc.obj
  96.  
  97. objects/main.obj:    main.c  $(INCL)
  98.     $(CC) $(CFLAGS) main.c -o objects/main.obj
  99.  
  100. objects/mark.obj:    mark.c  $(INCL)
  101.     $(CC) $(CFLAGS) mark.c -o objects/mark.obj
  102.  
  103. objects/memfile.obj:    memfile.c  $(INCL)
  104.     $(CC) $(CFLAGS) memfile.c -o objects/memfile.obj
  105.  
  106. objects/memline.obj:    memline.c  $(INCL)
  107.     $(CC) $(CFLAGS) memline.c -o objects/memline.obj
  108.  
  109. objects/message.obj:    message.c  $(INCL)
  110.     $(CC) $(CFLAGS) message.c -o objects/message.obj
  111.  
  112. objects/misccmds.obj:    misccmds.c  $(INCL)
  113.     $(CC) $(CFLAGS) misccmds.c -o objects/misccmds.obj
  114.  
  115. objects/normal.obj:    normal.c  $(INCL) ops.h
  116.     $(CC) $(CFLAGS) normal.c -o objects/normal.obj
  117.  
  118. objects/ops.obj:    ops.c  $(INCL) ops.h
  119.     $(CC) $(CFLAGS) ops.c -o objects/ops.obj
  120.  
  121. objects/option.obj:    option.c  $(INCL)
  122.     $(CC) $(CFLAGS) option.c -o objects/option.obj
  123.  
  124. objects/quickfix.obj:    quickfix.c  $(INCL)
  125.     $(CC) $(CFLAGS) quickfix.c -o objects/quickfix.obj
  126.  
  127. objects/regexp.obj:    regexp.c  $(INCL)
  128.     $(CC) $(CFLAGS) regexp.c -o objects/regexp.obj
  129.  
  130. objects/regsub.obj:    regsub.c  $(INCL)
  131.     $(CC) $(CFLAGS) regsub.c -o objects/regsub.obj
  132.  
  133. objects/screen.obj:    screen.c  $(INCL)
  134.     $(CC) $(CFLAGS) screen.c -o objects/screen.obj
  135.  
  136. objects/search.obj:    search.c  $(INCL)
  137.     $(CC) $(CFLAGS) search.c -o objects/search.obj
  138.  
  139. objects/tables.obj:    tables.c  $(INCL)
  140.     $(CC) $(CFLAGS) tables.c -o objects/tables.obj
  141.  
  142. objects/tag.obj:    tag.c  $(INCL)
  143.     $(CC) $(CFLAGS) tag.c -o objects/tag.obj
  144.  
  145. objects/term.obj:    term.c  $(INCL)
  146.     $(CC) $(CFLAGS) term.c -o objects/term.obj
  147.  
  148. objects/undo.obj:    undo.c  $(INCL)
  149.     $(CC) $(CFLAGS) undo.c -o objects/undo.obj
  150.  
  151. objects/window.obj:    window.c  $(INCL)
  152.     $(CC) $(CFLAGS) window.c -o objects/window.obj
  153.  
  154. cmdtab.h: cmdtab.tab mkcmdtab.exe
  155.     mkcmdtab cmdtab.tab cmdtab.h
  156.  
  157. mkcmdtab.exe: objects/mkcmdtab.obj
  158.     $(CC) -ml -o mkcmdtab objects/mkcmdtab.obj
  159.  
  160. objects/mkcmdtab.obj: mkcmdtab.c
  161.     $(CC) $(CFLAGS) mkcmdtab.c -o objects/mkcmdtab.obj
  162.